#include "timer.hpp"

using namespace std;

void Timer::Start()
{
	// start timer
	GetSystemTime(&t1);
		
}

void Timer::Stop()
{
	// stop timer
	GetSystemTime(&t2);

}

double Timer::GetElapsedTimeInMs()
{
	return double(abs(t2.wMilliseconds-t1.wMilliseconds));
}

double Timer::GetElapsedTimeInSec()
{
	return double(abs(t2.wSecond-t1.wSecond));
}
